const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  devServer: {
    proxy: {
      '/api1': {
        target: 'http://localhost:5000',
        changeOrigin: true,
        pathRewrite: {'^/api1' : ''}
      },
      '/api2': {
        target: 'http://localhost:5001',
        changeOrigin: true,
        pathRewrite: {'^/api2' : ''}
      },
      '/api3': {
        target: 'https://www.toutiao.com',
        changeOrigin: true,
        pathRewrite: {'^/api3' : ''}
      },
    }
  }
})
